<include file='Public:head'/>
<include file='Public:header'/>
<div class="container" style="margin-top:60px;">
  <div class="row">
    <div class="span12">    
        <form class="form-search" method="get" action="{:U(GROUP_NAME . '/Index/index')}">
          <div class="row">
            <div class="input-append span6">
              <input type="text" name="keyword" class="span4 search-query input-large" value="{$keyword}">
              <button type="submit" class="btn">Search</button>
            </div>
            <div class="radio span4">
              <label class="r"><input name="type" type="radio" value="0"><span>个人</span></label> 
              <label class="r"><input name="type" type="radio" value="1"><span>所有</span></label> 
              <label class="r"><input type="radio" name="doc"><span>文献</span></label> 
              <label class="r"><input type="radio" name="doc"><span>词条</span></label>   
            </div>
          </div>
          
        </form>
    </div>
  </div>
  <div class="row span12">
    <ul class="nav nav-tabs">
      <li><a href="#">词条</a></li>
    </ul>
    <h6>共找到{$page.totalRows}条结果</h6>
  </div>
  <div class="row">
     <div class="span12">
        <div class="thumbnail">
          
          <div class="accordion" id="accordion2">
            <volist name="item" id="it">
              <div class="accordion-group">
                <div class="accordion-heading">
                  <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#accordion2" href="#collapseWord{$it.i_id}">
                    {$it.itemname}
                  </a>
                </div>
                <div id="collapseWord{$it.i_id}" class="accordion-body collapse" style="height: 0px;">
                  <div class="accordion-inner">
                    <div>
                      <strong>Definition：</strong>{$it.definition}                  
                    </div>
                    <p>
                      <strong>In：</strong> 
                      <a href="">{$it.Document.docname}</a>
                    </p>
                    <div class="bs-docs-example">
                      <volist name="it['Example']" id="e">
                        <div class="thumbnail">
                          <div>
                            <span><b>{$e.sentence}</b></span>
                            <p><i>{$e.definition}</i></p>  
                          </div>
                        </div>
                        <br>
                      </volist>
                    </div>
                  </div>
                </div>
              </div> 
            </volist>
          </div>
            
          <div class="pagination pagination-centered">
            <ul>
                <label>当前&nbsp;{$page.nowPage}&nbsp;页/共&nbsp;{$page.totalPages}&nbsp;页</label>
                <li><a href="__ACTION__/d_id/{$item[0].d_id}/p/{$page.firstPage}">第一页</a></li>
                <li><a href="__ACTION__/d_id/{$item[0].d_id}/p/{$page.prePage}">上一页</a></li>
                <li><a href="__ACTION__/d_id/{$item[0].d_id}/p/{$page.nextPage}">下一页</a></li>
                <li><a href="__ACTION__/d_id/{$item[0].d_id}/p/{$page.totalPages}">最后一页</a></li>
              </ul>
          </div>

        </div>
      </div>
  </div>            
</div>
<include file='Public:footer' />

<style>
  .radio{
    height: 30px;
    line-height: 30px;
    float: left;
    margin-top: 8px;
  }
  .radio span{
    display: block;
    float: left;
  }
  .radio label{
    display: block;
    float: left;
  }
</style>